package com.sheliduan.itlearning.blogger.model.vos.course;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: 断舍离
 * @date: 2025/2/20 9:46
 * @description: 添加文章课程VO
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AddCourseReqVO {

    @NotBlank(message = "课程标题不能为空")
    private String title;

    @NotBlank(message = "课程封面不能为空")
    private String cover;

    @NotBlank(message = "课程摘要不能为空")
    private String summary;

    @NotBlank(message = "课程内容或视频链接不能为空")
    private String contentOrLocation;

    @NotNull(message = "课程类型不能为空")
    private Integer type;

    @NotNull(message = "课程价格不能为空")
    private Double price;

    @NotNull(message = "博主id不能为空")
    private Integer userId;

    @NotNull(message = "文章状态不能为空")
    private Integer status;

    @NotNull(message = "课程分类不能为空")
    private Integer categoryId;

    @NotNull(message = "课程标签不能为空")
    private Integer tagId;
}
